<?php

require_once(dirname(__FILE__).'/../../../uc/models/feed/UCModFeed.php');


class OPModFeed extends UCModFeed
{
    function addOneFeed($ar_feed, $appid)
    {
        if(!is_array($ar_feed) || count($ar_feed)<1)
        {
            return false;
        }
        $result = SDOApiActivityService::addActivity(json_encode($ar_feed),'json',$appid,array("accountType" => 0));
        
        
        if(SDOSocket::isError($result))
        {
            return false;
        }
        return true;
    }
}


//$o = new OPModFeed(110000308490);
//$ret = $o->getBanFeedFrend();
//var_dump($ret);
//var_dump($o->_errno);
